<template>
  <div>


     <footer class="footer" v-show="list.length != 0">
    <span class="todo-count" v-if="list.length != 0">
      <strong>{{ list.length }}</strong> 条数据
    </span>
    <button v-show="list.length != 0" class="clear-completed" @click="clear">
      全部清空
    </button>
  </footer>
  </div>
</template>

<script>
export default {
  name: "MyFooter",
  props:['list','clear'],

  methods: {
    
  },
};
</script>

<style>

.footer {
  color: #777;
  padding: 10px 15px;
  height: 20px;
  text-align: center;
  border-top: 1px solid #e6e6e6;
}

.footer:before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 50px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #f6f6f6,
    0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #f6f6f6,
    0 17px 2px -6px rgba(0, 0, 0, 0.2);
}



.clear-completed,
html .clear-completed:active {
  float: right;
  position: relative;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.clear-completed:hover {
  text-decoration: underline;
}

</style>